import { createRouter, createWebHistory } from 'vue-router'
import chatView from '../views/chatView.vue'
import conditionView from '../views/conditionView.vue'

// import('../views/conditionView.vue')


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '/',
      component: conditionView,
      
    },
    {
      path: '/chat',
      name: 'chat',
      component: () => import('../views/chatView.vue'),
    },
    {
      path: '/condition',
      name: 'condition',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/conditionView.vue'),
    },
  ],
})

export default router
